IDE와 Github Repository 연결

✒️ 2025-07-25 13:53 내용 수정


Git Repository 생성

GitHub에서 빈 원격 리포지토리 생성

IDE에서 생성


VS Code 터미널 사용 시

VS Code 터미널에서 로컬 리포지토리 생성

mkdir my-project
cd my-project
git init

작업 파일 생성 및 커밋

echo "# My Project" > README.md
git add .
git commit -m "Initial commit"

원격 리포지토리 연결 및 푸시

git remote add origin <https://github.com/사용자명/저장소이름.git>
git branch -M main
git push -u origin main